extends layout

block content
  ul.ui-listview(data-role='listview')
      each item in dirs
          li
            a(href='gallery?imgdir=#{item.urlpath}')
                img.imgclass(src='/images/dir.png')
                h2= item.name
      each item in zipfiles
          li
            a(href="RedMangaReader?file=#{item.urlpath}&type=#{item.type}",target="_blank")
                  img.imgclass(src='/images/zip.gif')
                  h2= item.name
      each item in picfiles
          li
              a(href='showImg?imgpath=#{item.path}',data-lightbox='a')
                  img.imgclass(src='showThumbnail?imgpath=#{item.path}')
                  h2= item.name